#include <iostream>
using namespace std;
#define MAXSIZE 2010
char vartex[MAXSIZE][MAXSIZE];
int n, m;
int main()
{
    cin >> m >> n;
    int len = n + m - 1;
    for (int i = 0; i < (n + 1) / 2; i++)
    {
        for (int j = 0; j < len; j++)
            vartex[i][j] = '.';
        int a = i, b = len - 1 - i;
        for (int j = 0; j < m; j++)
        {
            if (a > b)
                break;
            vartex[i][a++] = vartex[i][b--] = '*';
        }
    }
    for (int i = 0; i < (n + 1) / 2; i++)
    {
        for (int j = 0; j < len; j++)
        {
            cout << vartex[i][j];
        }
        cout << endl;
    }
    for (int i = (n + 1) / 2 - 2; i >= 0; i--)
    {
        for (int j = 0; j < len; j++)
        {
            cout << vartex[i][j];
        }
        cout << endl;
    }
    return 0;
}